<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            Top Fans By MKT    
        </title>
        <link rel='stylesheet' type='text/css' href='<?php echo $this->baseUrl() ?>/public/css/style.css'/>        
        <style>
            .wrap-control {
                background-color: #<?php echo $this->page_info['background_color']?>;
            }
        </style>    
    </head>
    <body>
        <div class='wrap-content'>
            <?php if ($this->facebook->isAdmin()): ?>
                <?php $admin_url = $this->url(array(
                            'module' => 'admin',
                            'pid' => $this->id_social_page));
                ?>
                <div class='admin-link'>
                    <a href='<?php echo $admin_url ?>'>
                        <?php echo $this->translate->_("ADMIN_PANEL")?>
                    </a>
                </div>
            <?php endif; ?>
            <?php if (!empty($this->page_info['banner_image'])): ?>
                <div class='banner-image'>
                    <img src='<?php echo $this->baseUrl() . UPLOAD_URL . '/' . $this->page_info['banner_image']?>' width='810px'/>
                </div>
            <?php endif; ?>
            <div class='wrap-control' style='heigh: 30px;position:relative;z-index:10'>
                <?php echo $this->partial("/_partial/fbWidget.phtml", "facebook", array(
                                            "url" => $this->facebook->getShareUrl($this->page_info['id_social_page'])
                                         ))
                ?>
            </div>
            <div class='wrap-control' style='padding-top: 0px'>
                <div class='wrap-time'>
                    <input type='text' id='input-date' style='display:none'/>     
                    <div class='time-display'>
                        <?php if ($this->page_info['reset_period'] == 'w'): ?>
                            <span><?php echo $this->translate->_("WEEK") . ' ' . date('W', $this->start_time)?>:</span> 
                        <?php else: ?>
                            <span><?php echo $this->translate->_("MONTH") . ' ' . date('m', $this->start_time)?>:</span> 
                        <?php endif; ?>
                        <span class='info-text'>
                            <?php echo date('m/d/Y', $this->start_time) ?> -
                            <?php echo date('m/d/Y', $this->end_time) ?>
                        </span>
                    </div>
<!--                    <div class='show-rank'>
                        <a href='javscript:void(0)' class='blue-button'>
                            <?php echo $this->translate->_("CLICK_TO_SEE_YOUR_RANK") ?>
                        </a>
                    </div>                            -->
                </div>       
            </div>            
            <div class='wrap-control main-control'>
                <div class='wrap-menu'>
                    <div class='left-menu active' name='total_point'>
                        <?php echo $this->translate->_("TOP_FANS") ?>
                    </div>
                    <div class='left-menu' name='posts'>
                        <?php echo $this->translate->_("TOP_POSTS") ?>
                    </div>                    
                    <div class='left-menu' name='comments'>
                        <?php echo $this->translate->_("TOP_COMMENTS") ?>
                    </div>
                    <div class='left-menu' name='likes'>
                        <?php echo $this->translate->_("TOP_LIKES") ?>
                    </div>                    
                    <div class='left-menu' name='votes'>
                        <?php echo $this->translate->_("TOP_VOTES") ?>
                    </div>                    
                    <div onclick='showInstruction(event)'>
                        <?php echo $this->translate->_("INSTRUCTION") ?>
                    </div>
                </div>
                <?php echo $this->layout()->content ?>                                
            </div>
            <div style='margin-top: 30px'>
                <?php echo $this->partial("/_partial/fbComment.phtml", "facebook", array(
                                            "url" => $this->facebook->getShareUrl($this->page_info['id_social_page'])
                                         ))
                ?>
            </div>
        </div>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 
        <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
        <link rel='stylesheet' type='text/css' href='<?php echo $this->baseUrl() . '/public/css/smoothness/jquery-ui-1.10.2.custom.min.css'?>'/>         
        <script src='<?php echo $this->baseUrl() . '/public/javascript/main.js' ?>'></script>
    </body>
</html>